package com.yanchi.factory.abstract1;

public class Client {
    public static void main(String[] args) {

        // 抽象工厂模式
        ProductFactory miFactory = new MiFactory();
        PhoneFactory miPhone = miFactory.getPhoneFactory();
        RouteFactory miRoute = miFactory.getRouteFactory();

        miPhone.open();
        miRoute.openWifi();

    }
}
